<script setup lang="ts">
</script>

<template>
<div class="content">
  <header class="header">
    <el-card shadow="hover">
      <div class="header_item">
        <img src="../assets/home/home_car.png" alt=""/>
        <div>
          <span>车辆总数</span>
          <span>12</span>
        </div>
      </div>
    </el-card>
    <el-card shadow="hover" class="header_item">
      <div class="header_item">
        <img src="../assets/home/home_car.png" alt=""/>
        <div>
          <span>本月报警</span>
          <span>238</span>
        </div>
      </div>
    </el-card>
    <el-card shadow="hover" class="header_item">
      <div class="header_item">
        <img src="../assets/home/home_car.png" alt=""/>
        <div>
          <span>全部司机</span>
          <span>13</span>
        </div>
      </div>
    </el-card>
    <el-card shadow="hover" class="header_item">
      <div class="header_item">
        <img src="../assets/home/home_car.png" alt=""/>
        <div>
          <span>全部司机</span>
          <span>13</span>
        </div>
      </div>
    </el-card>
  </header>
  <main>
    <el-card>

    </el-card>
  </main>
</div>
</template>

<style scoped>
.content{
  padding: 20px;
}
header{
  display: flex;
}
header > div:not(:first-child){
  margin-left: 15px;
}
.header_item{
  display: flex;
  padding: 0 10px;
  align-items: center;
}
.header_item > img{
  width: 35px;
  height: 35px;
}
.header_item > div{
  margin-left: 15px;
  display: flex;
  flex-direction: column;
}
.header_item > div >span:first-child{
  color: rgba(0, 0, 0, .4);
}
</style>
